package com.carsite.model;


import java.io.Serializable;

/**
 *  部门表
 * @struts.form include-all="false" extends="BaseForm"
 * @hibernate.class table="WT_department"
 */
public class Department extends BaseObject implements Serializable {
	
	private Long deptId;         //Id
   
	private String deptName;           //名称
	
	private String principal;        //负责人 
	
	private String telNo;              //电话
	
	private Branch branch;             //所属机构
	
	private Boolean isWarehouse;       //是否仓库
	
	   /**
     * @struts.form-field form-name="DepartmentForm"
     * @hibernate.id column="deptId" generator-class="increment" unsaved-value="null"
     */
	
	public Long getDeptId() {
		return deptId;
	}
    
	/**
     * @struts.form-field form-name="DepartmentForm"
     * @struts.validator type="required"
     * @hibernate.property column="deptName" not-null="true" length="50"
     */
	public String getDeptName() {
		return deptName;
	}
    
	/**
     * @struts.form-field form-name="DepartmentForm"
     * @hibernate.property column="principal"  length="50" 
     */
	public String getPrincipal() {
		return principal;
	}

	 /**
     * @struts.form-field form-name="DepartmentForm"
     * @hibernate.property column="telNo" length="50"
     */
	public String getTelNo() {
		return telNo;
	}
	

	/**
     * @hibernate.many-to-one  cascade="none"
     * column="branchId" 
     * inverse="false"
     * lazy="false"
     * not-null="true"
     */
	public Branch getBranch() {
		return branch;
	}
   
	
	
	
	/**
     * @struts.form-field form-name="DepartmentForm"
     * @hibernate.property   
     */
	public Boolean getIsWarehouse() {
		return isWarehouse;
	}

	public void setBranch(Branch branch) {
		this.branch = branch;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}

	public void setTelNo(String telNo) {
		this.telNo = telNo;
	}

	public void setIsWarehouse(Boolean isWarehouse) {
		this.isWarehouse = isWarehouse;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

	
	 

	

}
